/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ui.gui.documents;

import javax.swing.Icon;
import javax.swing.tree.DefaultMutableTreeNode;

/**
 *
 * @author stephane
 */
public class Node extends DefaultMutableTreeNode implements IconifiableItem {
    private static final long serialVersionUID = 1L;
    private AbstractDocument _document = null;
    private final AbstractDocument outer;

    public Node(AbstractDocument doc, final AbstractDocument outer) {
        this.outer = outer;
        this._document = doc;
        setUserObject(_document);
    }

    @Override
    public String toString() {
        return outer.getFileName() ;
    }

    @Override
    public Icon getIcon() {
        return outer.getIcon();
    }

   
    
}
